import java.util.Arrays;

public class Test {

    public static void main(String[] args) {

        Work a = Work.X;
        System.out.println(a);

//        Work b = new Work();

        Work[] rs = Work.values();
        System.out.println(Arrays.toString(rs));

        Work a1 = Work.valueOf("Z");
        System.out.println(a1);
        System.out.println(a1.name());
        System.out.println(a1.ordinal());

        A c = new A() {
            @Override
            public void go() {
                System.out.println("hehe");
            }
        } ;
        }
    }





abstract class A{
    public abstract void go();
}